﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AlbumDesigner.Helpers;

namespace Keepo.Models.Services
{
    public class PageNoteExport
    {
        public string Text { get; set; }

        public string SentDate { get; set; }

        public string Sender { get; set; }

        public string Receiver { get; set; }

        public PageNoteExport(PageNote note)
        {
            this.Text = note.Text;
            this.SentDate = note.SentDate.ToString("dd/MM/yyyy hh:mm");

            this.Sender = PageNotesHelper.GetEditorTypeString(note, note.SenderId);
            this.Receiver = PageNotesHelper.GetEditorTypeString(note, note.ReceiverId);
        }
    }
}